# coding=utf-8

# 当前服务的版本
from EXT.config import read_
from EXT.entity import Model
from EXT.logger_ import Log
# 配置文件路径
config = read_('./compose.yml')
config_obj = Model(config)
log_path = config_obj.log.path.value
# log_path = unicode(log_path, "GBK")
log_level = config_obj.log.level.value
log_color = config_obj.log.color_.value
log_ = Log(log_path,log_level,log_color).main()


def out(s):
	log_.info(s)


def err(s):
	log_.error(s)


def warn(s):
	log_.warning(s)


def debug(s):
	log_.debug(s)

def trace(s):
	log_.log(5,s)

if __name__ == '__main__':
        print config_obj.webservice.port.value
	#debug('111111111111')
	#err('1111111111111111')
